package com.svms.web.factory;

import com.svms.service.factory.SvmsServiceFactory;
import com.svms.service.iface.AlertIF;
import com.svms.service.iface.IndentIF;
import com.svms.service.iface.MovementIF;
import com.svms.service.iface.SpareDetailsIF;
import com.svms.service.iface.TransportIF;
import com.svms.service.iface.VehicleIF;

/**
 * @author om39a
 * 
 *         This method gives the instances of the svsm service BO's
 * 
 */
public class SvmsWebFactory {

	/**
	 * This method is used to fetch the VehicleIF instance from the spring bean
	 * 
	 * @return
	 */
	public static VehicleIF vehicleService() {
		return SvmsServiceFactory.getInstance().getVehicle();
	}

	/**
	 * This method is used to fetch the TransportIF instance from the spring
	 * bean
	 * 
	 * @return
	 */
	public static TransportIF transportService() {
		return SvmsServiceFactory.getInstance().getTransport();
	}

	/**
	 * This method is used to fetch the MovementIF instance from the spring bean
	 * 
	 * @return
	 */
	public static MovementIF movementService() {
		return SvmsServiceFactory.getInstance().getMovement();
	}

	/**
	 * This method is used to fetch the AlertIF instance from the spring bean
	 * 
	 * @return
	 */
	public static AlertIF alertService() {
		return SvmsServiceFactory.getInstance().getAlert();
	}

	/**
	 * This method is used to fetch the IndentIF instance from the spring bean
	 * 
	 * @return
	 */
	public static IndentIF indentService() {
		return SvmsServiceFactory.getInstance().getIndent();
	}

	/**
	 * This method is used to fetch the SpareDetailsIF instance from the spring
	 * bean
	 * 
	 * @return
	 */
	public static SpareDetailsIF spareDetailsService() {
		return SvmsServiceFactory.getInstance().getSpareDetails();
	}

}
